package reader;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * 
 * 
 * @author Minodor
 * 
 *         Reads the Scenario from the Scenario.txt file;
 */
public class ScenarioReader {
	private String nextLine;
	private BufferedReader reader;

	public ScenarioReader(File scenarioFile) {
		try {
			reader = new BufferedReader(new FileReader(scenarioFile));
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public String readLine() {
		try {
			if ((nextLine = reader.readLine()) != null)
				return nextLine;
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return "EOF";
	}
}
